import request from '@/utils/request'

// export 按需导出
export const register = data => request.post('/user/register', data)

export const login = data => request.post('/user/login', data)

// 3. 获取用户信息
export const getUserInfo = () => {
  return request('/user/currentUser')
}
